package com.gtw.modules.api.service.impl;

import com.gtw.modules.api.service.TbFeedbackServices;
import com.gtw.modules.dao.TbFeedbackDao;
import com.gtw.modules.entity.TbFeedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("tbFeedbackServices")
public class TbFeedbackServicesImpl implements TbFeedbackServices {

    @Autowired
    private TbFeedbackDao tbFeedbackDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbFeedbackDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbFeedback record) {
        return tbFeedbackDao.insert(record);
    }

    @Override
    public int insertSelective(TbFeedback record) {
        return tbFeedbackDao.insertSelective(record);
    }

    @Override
    public TbFeedback selectByPrimaryKey(Integer id) {
        return tbFeedbackDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbFeedback record) {
        return tbFeedbackDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbFeedback record) {
        return tbFeedbackDao.updateByPrimaryKey(record);
    }
}
